home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-08-19 | 765 b | 35 lines | [TEXT/ttxt] |
- global g:R,myStRec:R
- on PrintPict PicName
- PrOpen
- put NewHandle(1024) into hhh
- PrintDefault hhh
- SysBeep 20
- put PrStlDialog(hhh) into t1
- if t1=0 then
- disposeptr hhh
- PrClose
- exit PrintPict
- -- user canceled
- end if
- put PrJobDialog(hhh) into t2
- if t2=0 then
- disposeptr hhh
- PrClose
- exit PrintPict
- -- user canceled
- end if
- put PrOpenDoc(hhh,NIL,NIL) into PrGrafPort
- prOpenPage PrGrafPort,NIL
- get GetNamedResource("PICT",picName)
- if it≠NIL then
- put it@@.picFrame.topLeft into g.topLeft
- put it@@.picFrame.botRight into g.botRight
- DrawPicture it,g
- releaseResource it
- end if
- prClosePage PrGrafPort
- PrCloseDoc PrGrafPort
- PrPicFile hhh,NIL,NIL,NIL,myStRec
- PrClose
- disposePtr hhh
- end PrintPict